<?php

namespace app\index\model;

use think\Model;

class GoodsAttr extends Model
{
    // 查询当前属性
    public static function getAttrByIds($goods_attr_ids)
    {
        return self::alias('ga')
            ->field("ga.*,ta.attr_name")
            ->join('think_attribute ta','ga.attr_id = ta.id','left')
            ->where('ga.id','in',$goods_attr_ids)
            ->select();
    }


}
